package cn.iocoder.yudao.module.digital.controller.admin.cardkeysecret.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 卡密密钥 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CardkeySecretRespVO {

    @Schema(description = "卡密密钥id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19179")
    @ExcelProperty("卡密密钥id")
    private Long id;

    @Schema(description = "卡密商品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("卡密商品编号")
    private String productNo;

    @Schema(description = "领取状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "领取状态", converter = DictConvert.class)
    @DictFormat("digital_cardkey_claim_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer claimStatus;

    @Schema(description = "订单流水号")
    @ExcelProperty("订单流水号")
    private String orderNo;

    @Schema(description = "用户id", example = "19904")
    @ExcelProperty("用户id")
    private Long userId;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "来源", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "来源", converter = DictConvert.class)
    @DictFormat("digital_cardkey_source") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer source;

    @Schema(description = "面额（单位：分）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("面额（单位：分）")
    private Integer denomination;

    @Schema(description = "请求id", example = "14406")
    @ExcelProperty("请求id")
    private String requestId;

    @Schema(description = "卡账号id", example = "25125")
    @ExcelProperty("卡账号id")
    private String cardAccountId;

}